//
//  DLWWeChatShareConfig.m
//  DLWWeChatSharePaySDK
//
//  Created by dgg_hzk on 2019/3/11.
//  Copyright © 2019年 dgg_hzk. All rights reserved.
//

#import "DLWWeChatShareConfig.h"
#import "WWKApi.h"

@implementation DLWWeChatShareConfig

+ (void)configPlatform:(DLWWeChatShareCustomPlatformType)platform
                 appId:(NSString *)appId
             appSecret:(NSString *)appSecret
         universalLink:(NSString *)universalLink
                corpId:(NSString *)corpId
               agentId:(NSString *)agentId{
    if(platform == DLWWeChatShareCustomPlatformTypeQiyeWeChat){
        [self configWorkWeChatWithAppId:appId corpId:corpId agentId:agentId];
    }else {
        NSLog(@"=====非企业微信====");
    }
}

+ (void)configWorkWeChatWithAppId:(NSString *)appId
                                 corpId:(NSString *)corpId
                                agentId:(NSString *)agentId{
    if(appId && corpId && agentId){
        [WWKApi registerApp:appId corpId:corpId agentId:agentId];
    }else{
        [WWKApi registerApp:appId];
    }
}

@end
